package com.customer.crm.customer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.customer.crm.customer.mapper.ContactsMapper;
import com.customer.crm.customer.pojo.Contacts;
import com.customer.crm.customer.pojo.Customer;
import com.customer.crm.customer.service.ContactsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lyp
 * @create 2021/12/24
 */
@Service
public class ContactsServiceImpl extends ServiceImpl<ContactsMapper, Contacts> implements ContactsService {
    @Autowired
    ContactsMapper contactsMapper;

    @Override
    public List<Contacts> page(Long page, Long rows) {
        return contactsMapper.page((page-1 ) * rows, rows);
    }

    @Override
    public Contacts findContactsById(Integer id) {
        return contactsMapper.findContactsById(id);
    }


}
